package com.food.user.exception.merchantLoginException;

public enum MerchantLoginExceptionCode {
    MERCHANT_LOGIN_EXCEPTION_NOT_REGISTER(5001,"账号未注册！"),
    MERCHANT_LOGIN_EXCEPTION_PASSWORD_ERROR(5002,"密码不正确"),
    MERCHANT_LOGIN_EXCEPTION_PHONE_NOT_REGISTER(5003,"该手机号尚未注册"),
    MERCHANT_LOGIN_EXCEPTION_FREQUENT(5004,"发送验证码过于频繁"),
    MERCHANT_LOGIN_EXCEPTION_FIVETIMES(5005,"达一小时内发送验证码上限"),
    MERCHANT_LOGIN_EXCEPTION_CODE_TIME_OUT(5006,"验证码已过期"),
    MERCHANT_LOGIN_EXCEPTION_CODE_ERROR(5007,"验证码有误"),
    MERCHANT_LOGIN_EXCEPTION_PHONE_REGISTERED(5008,"手机号已被注册"),
    MERCHANT_LOGIN_EXCEPTION_OLD_PASSWORD_ERROR(5009,"原密码错误"),
    MERCHANT_LOGIN_EXCEPTION_NEW_PASSWORD_REPEAT(5010,"新密码不能和旧密码一致"),
    MERCHANT_LOGIN_EXCEPTION_ACCOUNT_ERROR(5011,"账号有误");
    Integer code;
    String message;

    MerchantLoginExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }
    public Integer getCode(){return code;}
    public String getMessage(){return message;}
}
